package com.hsl.housaileibot001.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 面试题目实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@TableName("interview_question")
@Schema(description = "面试题目")
public class InterviewQuestion extends BaseEntity {

    /**
     * 题目标题
     */
    @ExcelProperty("题目标题")
    @Schema(description = "题目标题")
    private String title;

    /**
     * 难度等级
     */
    @ExcelProperty("难度等级")
    @Schema(description = "难度等级")
    private String difficulty;

    /**
     * 标签，多个标签用逗号分隔
     */
    @ExcelProperty("标签")
    @Schema(description = "标签，多个标签用逗号分隔")
    private String tags;

    /**
     * 题目链接
     */
    @ExcelProperty("题目链接")
    @Schema(description = "题目链接")
    private String link;

    /**
     * 来源网站
     */
    @ExcelProperty("来源网站")
    @Schema(description = "来源网站")
    private String source;

    /**
     * 浏览次数
     */
    @ExcelProperty("浏览次数")
    @Schema(description = "浏览次数")
    private Integer viewCount;

    /**
     * 点赞次数
     */
    @ExcelProperty("点赞次数")
    @Schema(description = "点赞次数")
    private Integer likeCount;

    /**
     * 收藏次数
     */
    @ExcelProperty("收藏次数")
    @Schema(description = "收藏次数")
    private Integer collectCount;

    /**
     * 状态
     */
    @ExcelProperty("状态")
    @Schema(description = "状态")
    private String status;

    public InterviewQuestion(String title, String difficulty, String tags, String link) {
        this.title = title;
        this.difficulty = difficulty;
        this.tags = tags;
        this.link = link;
    }
}